package main

import "fmt"

func main() {
	fmt.Println("最小的数字是：", min(10, 8, 12, 59, 4, 6, 9))
}

func min(s ...int) int {
	if len(s) < 1 {
		return 0
	}
	min := s[0]
	for _, v := range s {
		if v < min {
			min = v
		}
	}
	return min
}
